package com.hzjy.api.service.impl;

import com.hzjy.api.beans.HzjyWorks;
import com.hzjy.api.mapper.VideoMapper;
import com.hzjy.common.utils.PageData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VideoServiceImpl {


    @Autowired
    private VideoMapper videoMapper;

    /**
     * 查询出影视类作品
     * @param pageData
     * @return
     */
    public List<PageData> videoList(PageData pageData) {
        List<PageData> pageDataList = videoMapper.videoList(pageData);
        return pageDataList;
    }

    /**
     * 查询影视版权总条数
     * @param pageData
     * @return
     */
    public int videoListNum(PageData pageData) {
        return videoMapper.videoListNum(pageData);
    }
}
